package com.slkj.shilixiaoyuanapp.entity;

import com.contrarywind.interfaces.IPickerViewData;

import java.util.List;

/**
 * Created  on 2018-08-01
 *
 * @author 唐开阔
 * @describe
 */
public class KnowledgeAllEntity {

    /**
     * title : 第一章
     * knowledge : [{"kId":1,"kName":"读数，写数"},{"kId":16,"kName":"加减法"}]
     */

    private String title;
    private List<KnowledgeEntity> knowledge;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<KnowledgeEntity> getKnowledge() {
        return knowledge;
    }

    public void setKnowledge(List<KnowledgeEntity> knowledge) {
        this.knowledge = knowledge;
    }

    public static class KnowledgeEntity  implements IPickerViewData {
        /**
         * kId : 1
         * kName : 读数，写数
         */

        private int kId;
        private String kName;

        public int getKId() {
            return kId;
        }

        public void setKId(int kId) {
            this.kId = kId;
        }

        public String getKName() {
            return kName;
        }

        public void setKName(String kName) {
            this.kName = kName;
        }

        @Override
        public String getPickerViewText() {
            return kName;
        }
    }
}
